<?php $this->load->view('common/head');?>
<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">专营店活动项目基本信息</div>

  <!-- Table -->
  <table class="table table-condensed">
    <tbody>
      <tr>
        <td class="bg-primary col-sm-2">项目名称：</td>
        <td class="col-sm-8"><?php echo $projectData['projectName'] ?></td>
      </tr>
      <tr>
        <td class="bg-primary col-sm-2">标准动作：</td>
        <td class="col-sm-8"><?php echo $projectData['actionTypeStr'] ?></td>
      </tr>
      <tr>
        <td class="bg-primary col-sm-2">活动类型：</td>
        <td class="col-sm-8"><?php echo $projectData['eventTypeStr'] ?></td>
      </tr>
      <tr>
        <td class="bg-primary col-sm-2">活动分类：</td>
        <td class="col-sm-8"><?php echo $projectData['eventClassStr'] ?></td>
      </tr>
    </tbody>
  </table>
</div>
<form action="<?php echo $this->input->server('REQUEST_URI'); ?>" name="settleSubmit" id="settleSubmit" method="post">
<input type="hidden" name="projectId" id="projectId" value="<?=$projectId?>">
<?php $this->load->view('CityGx/settleList', $this->viewData); ?>
<?php $this->load->view('CityOffline/settleList', $this->viewData); ?>
<?php //$this->load->view('CityProject/settleMoneyDetail', $this->viewData); ?>
<div class="text-center">
  <button type="submit" class="btn btn-default btn-primary" role="button">提交</button>
  <button type="button" class="btn btn-default btn-primary" role="button" onclick="closeWindow()">关闭</button>
</div>
</form>
<script type="text/javascript">
$(function(){
  initValidation();
});
  //初始化验证
function initValidation(){
  $('form[name="settleSubmit"]').find("input,select,textarea").jqBootstrapValidation("destroy");
  $('form[name="settleSubmit"]').find("input,select,textarea").not("[type=submit]").jqBootstrapValidation({
      preventSubmit:false,
      submitSuccess: function (form, event) {
           event.preventDefault();
           ajaxFormSubmit('settleSubmit');
       },
       submitError: function (form, event, errors) {
         event.preventDefault();
         }
    });
}
</script>
<?php $this->load->view('common/foot');?>